package com.golang.api.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.golang.api.domain.UserAccount;
import com.golang.api.dto.request.UserAccountDto;
import com.golang.api.dto.response.order.CreateOrderDto;
import com.golang.api.mapper.UserAccountMapper;
import com.golang.api.service.IUserAccountService;
import com.golang.api.util.Result;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 账户信息Service业务层处理
 *
 * @author 自动生成
 * @date 2025-04-05
 */
@Service
public class UserAccountServiceImpl extends ServiceImpl<UserAccountMapper, UserAccount> implements IUserAccountService {

    @Override
    public boolean add(UserAccountDto account) {
        UserAccount userAccount = new UserAccount();
        BeanUtils.copyProperties(account, userAccount);
        return save(userAccount);
    }
}
